package com.zhenhao.xsq.ui.activity.door.presenter;


import com.zhenhao.xsq.data.api.HttpAPIWrapper;
import com.zhenhao.xsq.ui.activity.door.DoorManageActivity;
import com.zhenhao.xsq.ui.activity.door.contract.DoorManageContract;

import java.util.Map;

import javax.inject.Inject;

import androidx.annotation.NonNull;
import io.reactivex.disposables.CompositeDisposable;
import io.reactivex.disposables.Disposable;
import io.reactivex.functions.Action;
import io.reactivex.functions.Consumer;

/**
 * @author William
 * @Package com.yxld.yxchuangxin.xsq.ui.activity.menjin
 * @Description: presenter of DoorManageActivity
 * @date 2020/05/28 15:25:29
 */
public class DoorManagePresenter implements DoorManageContract.DoorManageContractPresenter{

    HttpAPIWrapper httpAPIWrapper;
    private final DoorManageContract.View mView;
    private CompositeDisposable mCompositeDisposable;
    private DoorManageActivity mActivity;

    @Inject
    public DoorManagePresenter(@NonNull HttpAPIWrapper httpAPIWrapper, @NonNull DoorManageContract.View view, DoorManageActivity activity) {
        mView = view;
        this.httpAPIWrapper = httpAPIWrapper;
        mCompositeDisposable = new CompositeDisposable();
        this.mActivity = activity;
    }
    @Override
    public void subscribe() {

    }

    @Override
    public void unsubscribe() {
        if (!mCompositeDisposable.isDisposed()) {
             mCompositeDisposable.dispose();
        }
    }

}